﻿<%@ Page Language="c#" AutoEventWireup="false" Inherits="Yorkg.CMS.Web.ExtraBus.Page_InstalBase" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>约克软件 - 做中国最好的.net软件产品</title>
    <meta name="keywords" content="约克软件,约克CMS系统,约克CRM系统,网络营销策划,品牌策划,网络事件营销,企业网络营销,网络营销推广,口碑营销" />
    <meta name="description" content="河南约克-中原最具实战经验的网络整合营销策划机构，专注于网络市场调查、网络顾问、企业网络营销诊断、网络公关、网络口碑推广策划、网络事件营销、基础网站建设、软件开发等" />
    <meta name="generator" content="YorkCMS 1.0" />
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <link rel="icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="main.css" type="text/css" media="all" />
    <script type="text/javascript" src="js/jquery.js"></script>
    <link rel="stylesheet" href="js/jquery_boxy/css/common.css" type="text/css" />
    <link rel="stylesheet" href="js/jquery_boxy/css/boxy.css" type="text/css" />
    <script type="text/javascript" src="js/jquery_boxy/js/jquery.boxy.js"></script>
    <script type="text/javascript">
        //判断输入的是不是正常的字符串
        function IsHttp(String) {
            var myReg = /^http:\/\/([A-Za-z0-9_-]+)[\.]{1}[\S\s]+/;
            var matchArray = String.match(myReg);
            //alert(matchArray[1]);
            if (matchArray == null) {
                //alert("E-mail邮件地址错误！");
                //show_dialoginfo(_str_ErrorTitle,"E-mail邮件地址错误！",_int_Width,_int_Height)
                return false;
            }
            return true;
        }
        //判断输入的是不是合法邮件地址
        function IsEMail(emailStr) {
            var emailPat = /^([A-Za-z0-9_\-\.]+)@([A-Za-z0-9]+)[\.]+([A-Za-z0-9]{2,3})$/;
            var matchArray = emailStr.match(emailPat);
            //alert(matchArray[1]);
            if (matchArray == null) {
                //alert("E-mail邮件地址错误！");
                //show_dialoginfo(_str_ErrorTitle,"E-mail邮件地址错误！",_int_Width,_int_Height)
                return false;
            }
            return true;
        }
        var refer = "";
        refer = location.href.split("?referurl=")[1].replace("index.aspx", "step2.aspx");
        var flag = false;
        var checkValue = function () {
            var v = $("#EnterpriseName").val();
            if (v.length == 0) {
                Boxy.alert('企业名称  不能为空！', false, { width: 400 });
                return false;
            }
            v = $("#LinkMan").val();
            if (v.length == 0) {
                Boxy.alert('联系人姓名  不能为空！', false, { width: 400 });
                return false;
            }
            v = $("#linkTel").val();
            if (v.length == 0) {
                Boxy.alert('联系电话  不能为空！', false, { width: 400 });
                return false;
            }
            v = $("#LinkAddress").val();
            if (v.length == 0) {
                Boxy.alert('联系地址  不能为空！', false, { width: 400 });
                return false;
            }
            v = $("#WebSite").val();
            if (v.length == 0) {
                Boxy.alert('网站地址  不能为空！', false, { width: 400 });
                return false;
            }
            if (IsHttp(v) == false) {
                Boxy.alert('标准格式为:http://www.yorknet.cn  ', false, { width: 400 });
                return false;
            }
            v = $("#Email").val();
            if (v.length == 0) {
                Boxy.alert('Email  不能为空！', false, { width: 400 });
                return false;
            }
            if (IsEMail(v) == false) {
                Boxy.alert('Email 格式不正确！', false, { width: 400 });
                return false;
            }
            checkForumPath();
            location.href = refer;
            return true;
        }
        var checkForumPath = function () {
            $.ajax(
        {
            type: "GET",
            async: true,
            url: "../publish/EnterpRecord.aspx",
            data: { EnterpriseName: $("#EnterpriseName").val(),
                LinkMan: $("#LinkMan").val(),
                linkTel: $("#linkTel").val(),
                LinkAddress: $("#LinkAddress").val(),
                WebSite: $("#WebSite").val(),
                Email: $("#Email").val(),
                QQ: $("#QQ").val(),
                MSN: $("#MSN").val()
            },
            success: function (data) {
                flag = true;
            }
        });
        }
        function checkid(obj, id) {
            var v = obj.value;
            if (v.length == 0)
                $(id).show();
            else
                $(id).hide();
        }
    </script>
</head>
<body>
    <%if (string.IsNullOrEmpty(Yorkg.CMS.Common.RequestHelper.RequestString("referurl")))
      {
          Response.Write("请通过正确的途径进入本页面");
          Response.End();
      }%>
    <div class="wrap">
        <div class='side s_clear'>
            <div class='side_bar'>
                <ul>
                    <li>欢迎</li>
                    <li class="currentitem">用户信息</li>
                    <li>环境检测</li>
                    <li>CMS设置信息</li>
                    <li>数据库信息</li>
                </ul>
                <div class='copy'>
                    河南约克信息技术有限公司</div>
            </div>
        </div>
        <div class="main s_clear">
            <div class="content">
                <h1>
                    用户信息</h1>
                <div class="info">
                    请认真填写下面的设置信息：</div>
                <div class="inner">
                    <div class="hint_info">
                        请认真填写您的会员资料以便我们提供更适合您的服务与资讯。经您同意于约克或其附属网站留下的个人资料不会被任意转供其他第三方或移作其他目的使用。</div>
                    <form id="form_step4" action="../publish/RecSubmit.aspx" method="post" runat="server">
                    <table width="488" cellspacing="0" cellpadding="0" summary="setup" class="setup">
                        <tbody>
                            <tr>
                                <td class="title">
                                    企业名称:
                                </td>
                                <td>
                                    <input name="EnterpriseName" id="EnterpriseName" class="txt" type="text" onblur="checkid(this,'#isnull_EnterpriseName')">
                                    <span id='isnull_EnterpriseName' style="color: #ff0000;">此处不能为空！</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="title">
                                    联系人姓名 :
                                </td>
                                <td>
                                    <input name="LinkMan" id="LinkMan" class="txt" type="text" onblur="checkid(this,'#isnull_LinkMan')">
                                    <span id='isnull_LinkMan' style="color: #ff0000;">此处不能为空！</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="title">
                                    联系电话 :
                                </td>
                                <td>
                                    <input name="linkTel" id="linkTel" class="txt" type="text" onblur="checkid(this,'#isnull_linkTel')">
                                    <span id='isnull_linkTel' style="color: #ff0000;">此处不能为空！</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="title">
                                    Email :
                                </td>
                                <td>
                                    <input name="Email" id="Email" class="txt" type="text" onblur="checkid(this,'#isnull_Email')">
                                    <span id='isnull_Email' style="color: #ff0000;">此处不能为空！</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="title">
                                    联系地址 :
                                </td>
                                <td>
                                    <input name="LinkAddress" id="LinkAddress" class="txt" type="text" onblur="checkid(this,'#isnull_LinkAddress')">
                                    <span id='isnull_LinkAddress' style="color: #ff0000;">此处不能为空！</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="title">
                                    网站地址 :
                                </td>
                                <td>
                                    <input name="WebSite" id="WebSite" class="txt" type="text" onblur="checkid(this,'#isnull_WebSite')">
                                    <span id='isnull_WebSite' style="color: #ff0000;">此处不能为空！</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="title">
                                    QQ :
                                </td>
                                <td>
                                    <input name="QQ" id="QQ" class="txt" type="text">
                                </td>
                            </tr>
                            <tr>
                                <td class="title">
                                    MSN :
                                </td>
                                <td>
                                    <input name="MSN" id="MSN" class="txt" type="text">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    </form>
                </div>
            </div>
            <div class="btn_box">
                <button type="submit" name="back" id="back" value="true" onclick=" parent.location.href='<%=Yorkg.CMS.Common.RequestHelper.RequestString("referurl")%>'">
                    上一步</button>
                <button type="submit" name="next" id="next" value="true" onclick="return checkValue(); ">
                    下一步</button>
            </div>
        </div>
    </div>
    <script type="text/javascript">

        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-23868831-1']);
        _gaq.push(['_setDomainName', '.yorknet.cn']);
        _gaq.push(['_trackPageview']);

        (function () {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();

    </script>
</body>
</html>
